<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import = "java.util.Date"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file ="lianjie.jsp"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<%
	/* 借书时间 */
		java.sql.Date date = new java.sql.Date(new Date().getTime());
		String str_date = date.toString();
		out.print(str_date);
		String date_sql = "update borrowinformation set date = '" + str_date + "'where userID = '20180001' and bookISBN = '0001'";
		out.print(date_sql);
		stmt.executeUpdate(date_sql); 
	/* 还书时间 */
		             
	%>
</body>
</html>